home *** CD-ROM | disk | FTP | other *** search
- 'ttrender.database' file format
-
- 'ttrender.database' is a plain text file containing informations about
- TrueType fonts available in the system. There is no tool to
- automatically generate it, the database have to be written by hand.
- Every line contains one keyword followed by parameter value. Name and
- value can be separated by space(s) or equality sign, exactly the same as
- shell command parameters (to say more - database is parsed by the same
- ReadArgs() system call as shell command parameters are). Parameter
- values containing spaces should be quoted. Here are some examples:
-
- FAMILYNAME Tahoma
- FAMILYNAME=Times
- FAMILYNAME = "Times New Roman"
- FAMILYNAME "Weird Font"
-
- Keywords
-
- FAMILYNAME - defines the name used for font opening. All variants of the
- font (italic, bold, black, heavy, light, demi etc.) will have the same
- family name.
-
- ALIAS - defines another name for the same family. It generally has three
- purposes:
-
- 1. Similar names for the same font, like "Times", "TimesNewRoman" and
- "Times New Roman".
-
- 2. One replacement font for some very similar ones, for example
- "Helvetica" and "Switzerland" can be aliased to "Arial".
-
- 3. Generic names like "default", "serif", "sans-serif", "monospaced". An
- application can request generic name without specific family name, or
- generic font can be used as a fallback if given name can't be found in
- the database. For example you can alias "monospaced" to "Courier", and
- an application (be it CSS compatible HTML viewer) can request
- 'LucidaConsole, monospaced'. If there is no LucidaConsole font in the
- system, Courier will be used. The same way you can alias any font to any
- other, for example Times to Arial, this makes not much sense however.
- "default" font will be used as a last resort.
-
- REGULAR - specifies the path to *.ttf file containing regular flavour of
- the typeface.
-
- ITALIC - specifies the path to *.ttf file containing italic or oblique
- flavour of the typeface.
-
- BOLD - specifies the path to *.ttf file containing emboldened flavour of
- the typeface
-
- BOLDITALIC - specifies the path to *.ttf file containing emboldened and
- italic (or oblique) flavour of the typeface.
-
- If SHEAR keyword is used with one of the four above (makes sense with
- ITALIC and BOLDITALIC) the given font will be algorythmically sheared.
- It is intended for fonts which don't have separate files for italic and
- bold italic flavours. Here is an example for Tahoma:
-
- FAMILYNAME Tahoma
- REGULAR TTFonts:Tahoma.ttf
- BOLD TTFonts:TahomaBold.ttf
- ITALIC SHEAR TTFonts:Tahoma.ttf
- BOLDITALIC SHEAR TTFonts.TahomaBold.ttf
-
- SMOOTHSMALL and SMOOTHBIG - these two controls text smoothing (also
- known as antialiasing). It has been proven that font sizes from 10 to 20
- points (typically) are more readable when not smoothed. Especially
- TrueType fonts which have really good hinting engine.
-
- Comments
-
- You can place any full-line comments in the file starting a line with
- hash or semicolon. End-line comments are not supported.
-
-
-